#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QStack>
#include <QRegularExpression>

QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_one_clicked();

    void on_pushButton_two_clicked();

    void on_pushButton_three_clicked();

    void on_pushButton_four_clicked();

    void on_pushButton_five_clicked();

    void on_pushButton_six_clicked();

    void on_pushButton_sevevn_clicked();

    void on_pushButton_eight_clicked();

    void on_pushButton_nine_clicked();

    void on_pushButton_jia_clicked();

    void on_pushButton_jian_clicked();

    void on_pushButton_cheng_clicked();

    void on_pushButton_chu_clicked();

    void on_pushButton_qingling_clicked();

    void on_pushButton_huitui_clicked();

    void on_pushButton_equal_clicked();

private:
    Ui::Widget *ui;
    QString expression;
};
#endif // WIDGET_H
